const express = require('express')
const userCtrl = require('../controller/user')
const userValidator = require('../validator/user')

const router = express.Router()

router.post('/register', userValidator.register, userCtrl.register)

router.post('/login', userValidator.login, userCtrl.login)

router.post('/*@*.com', userValidator.user, userCtrl.user)

module.exports = router
